package de.lns.ui.overlay;

import de.lns.render.Model;
import de.lns.ui.menu.Label;

public class OverlayLabel extends Label{
	private Action action;
	private String name;
	
	/**
	 * @param action
	 * @param name
	 * @param model
	 * @param x
	 * @param y
	 * @param width
	 * @param height
	 */
	public OverlayLabel(Action action, String name, Model model, int x, int y, int width, int height){
		super(model,x,y,width,height);
		this.action=action;
		this.name=name;
	}
	
	
	public void onClick(){
		action.onClick(this);
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public void setAction(Action action) {
		this.action = action;
	}

}
